package com.ppg.basic.bigDecimal;

import java.math.BigDecimal;
import java.math.RoundingMode;

public class BigDecimalTest {


    public static void main(String[] args) {

        BigDecimal b = new BigDecimal(100);

        BigDecimal bigDecimal = b.setScale(2, RoundingMode.HALF_UP);

        System.out.println(bigDecimal.stripTrailingZeros().toPlainString());
    }
}
